package com.mqz.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mqz.seckill.pojo.Order;
import com.mqz.seckill.pojo.User;
import com.mqz.seckill.vo.GoodsVO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface OrderService extends IService<Order> {
    Order seckill(User user, GoodsVO goodsVO);

    String createToken(User user, Long goodsId);

    Boolean isTokenLegal(User user, Long goodsId, String token);

    void creatCaptcha(HttpServletRequest request, HttpServletResponse response, User user, Long goodsId);

    Boolean isCaptchaLegal(User user, Long goodsId, String captcha);
}
